package com.platform.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.SendMsgDao;
import com.platform.entity.SendMsgEntity;
import com.platform.service.SendMsgService;

/**
 * 微信发送消息Service实现类
 *
 * @author LarkerJin
 * @email 277901879@qq.com
 * @date 2019-09-02 15:26:55
 */
@Service("sendMsgService")
public class SendMsgService {
    @Autowired
    private SendMsgDao sendMsgDao;

    public SendMsgEntity queryObject(Integer id) {
        return sendMsgDao.queryObject(id);
    }

    public List<SendMsgEntity> queryList(Map<String, Object> map) {
        return sendMsgDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return sendMsgDao.queryTotal(map);
    }

    public int save(SendMsgEntity sendMsg) {
        return sendMsgDao.save(sendMsg);
    }

    public int update(SendMsgEntity sendMsg) {
        return sendMsgDao.update(sendMsg);
    }

    public int delete(Integer id) {
        return sendMsgDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return sendMsgDao.deleteBatch(ids);
    }
    
    public void sendMsg(Integer id) {
    	SendMsgEntity sendMsg = sendMsgDao.queryObject(id);
    	
    }
    
    public void loopSendMsgs() {
    	
    }
}
